﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp5
{
    class Program
    {

        static void Main(string[] args)
        {
            Console.WriteLine("请选择功能");
            string st = Console.ReadLine();
            Robot r;
            r = Rb(st);
            r.Working();



        }
        public static Robot Rb(string st)
        {
            Robot r;
            if (st.Equals("传菜"))
            {
                r = new DeliveryRobot("8", "托雷吧");
                return r;
            }
            else if (st.Equals("炒菜"))
            {
                r = new CookRobot("Tom", "土豆炖土豆", food.土豆炖土豆);
                return r;
            }
            return r = new CookRobot("tim", "清蒸黄瓜", food.清蒸黄瓜);
        }
    }
}
